class Province < ActiveRecord::Base
  
  has_many :cities, :conditions => 'areas_count > 0'
  has_many :areas
  
  validates_uniqueness_of :name,
    :code
    
  default_scope :conditions => 'areas_count > 0'
end
